﻿using Core.Domain.Companys;
using System.Data.Entity.ModelConfiguration;

namespace Data.Mapping.Companys
{
    public partial class CompanyMap : EntityTypeConfiguration<Company>
    {
        public CompanyMap()
        {
            this.ToTable("Company");
            this.HasKey(s => s.Id);
            this.Property(s => s.Name).IsRequired().HasMaxLength(200);
            this.Property(s => s.Memo).IsRequired().IsMaxLength();
            this.Property(s => s.URL).IsRequired().HasMaxLength(500);

        }
    }
}
